home *** CD-ROM | disk | FTP | other *** search
- # !TCPIPUser.Config
- # File of initial configuration settings, read when !TCPIP starts up.
-
- terminal * @main W
- # Attach macro menu "main" to the main
- # command window, set cursor wrap mode on.
-
- # Supply some information about your particular machine
-
- set node "{{net_account}}"
- # Your machine name (e.g., "fubar" if your
- # fully-qualified domain name is
- # fubar.demon.co.uk).
-
- set domain "{{net_domain}}"
- # Domain used by your service provider
- # (e.g., "demon.co.uk" if your fully-
- # qualified domain name is
- # fubar.demon.co.uk.
-
- set host "{node}.{domain}"
- # Host name is constructed by TCPIP from
- # the values of {node} and {domain}
- # defined above.
-
- @if net_fixed_ip$>""
- set ip_addr "{{net_ip_address}}"
- # Your IP address (e.g., "158.152.9.18"
- # without square brackets).
- @else
- # For dynamically assigned IP addresses, the variable ip_addr is set
- # automatically from the system variable TCPIP$String$ip_addr, which is
- # in turn set by !SLIPdial at login time.
- @endif
-
- hostname {host}
- # Tell TCPIP what your hostname is, using
- # the value of {host} defined above.
-
- ip address [{ip_addr}]
- # Tell TCPIP what your IP address is,
- # based on the value of {ip_addr}
- # defined above (if you have a fixed IP
- # address) or passed by SlipDial (if
- # you have a dynamic IP address).
-
- domain suffix {domain}
- # Allows you to refer to the machines of
- # other subscribers to your provider
- # by their node name (e.g., if the domain
- # is "demon.co.uk" you can use "finger
- # foo" instead of
- # "finger foo.demon.co.uk").
-
- set nsqserver "{{net_nsq_server}}"
- # Server to use for name-server queries
- # entered via the NSQuery macro menu.
- # Such queries are for human use (i.e.,
- # finding out aliases of machines) and
- # are not used by TCPIP, so it is not
- # vital.
-
- # A whole load of TCPIP defines coming up so the meaning of the attach
- # parameters can be clearly commented.
-
- set driver "{{net_serial_driver}}"
- # Serial Block driver name (as given in
- # !SerialDev.modules, such as Internal,
- # II_Dual, SP_Dual, etc.). Which one
- # you use depends on whether you are using
- # the internal (in-built) serial port or
- # an Intelligent Interfaces dual serial
- # port card or a dual serial port card from
- # The Serial Port. Some drivers have a
- # PC variant which means you are using
- # a PC-style serial cable rather than an
- # Acorn-style cable (which uses special
- # wiring to get round problems with the
- # internal serial port on earlier models).
- # Later models (A5000 and later) can use
- # either style of cable provided you choose
- # the appropriate block driver.
-
- set port "{{net_port}}"
- # Serial port number (Internal is always
- # zero, II_Dual and SP_Dual can be 0 or 1 -
- # or higher if you have more than one dual
- # serial port cards).
-
- set protocol "{{net_ka9q_protocol}}"
- # Protocol to talk down the line. At
- # present TCPIP understands both slip and
- # cslip, but not ppp (or its variants such
- # as nolqm). Cslip is more efficient if
- # your provider offers it.
- # Note that with most providers, if you
- # wish to use cslip you set the protocol
- # here to be cslip but when you connect
- # you tell your provider you are using
- # slip and their software auto-detects
- # whether you are using slip or cslip -
- # in fact your provider's s/w may not
- # understand if you answer cslip when you
- # connect.
-
- set speed "0"
- # Serial port speed, or "0" to leave at
- # current setting (0 is strongly
- # recommended).
-
- set mtu "{{net_mtu}}"
- # Maximum transmission unit. For most
- # uses a value of 576 is recommended. Note
- # that tcp mss (set later) should be 40
- # less than mtu (so if mtu is 576 then
- # tcp mss should be 536).
- # For ethernet a value of 1500 is more
- # efficient.
-
- attach asy {driver} {port} {protocol} sl0 2048 {mtu} {speed}
- # Tell TCPIP to attach the serial port.
-
- route add default sl0 [{{net_router}}] 1
- # Note that with slip or cslip, the IP
- # address you use here doesn't really
- # matter. It will matter if PPP support
- # is added.
-
- ip ttl 64
- # Number of hops before an IP packet is
- # considered to be dead - it is assumed
- # that no machine on the internet is more
- # than 64 hops away so that any packet
- # which exceeds this is stuck in a routeing
- # loop. Lower values are appropriate for
- # packet radio and ethernet connections,
- # but you should not consider altering
- # this for internet use unless you *really*
- # know what you are doing.
-
- tcp mss 536
- # Maximum size of TCP packets. Since
- # these are wrapped in IP packets and
- # IP packets have a 40-byte header, this
- # value should be 40 less than the size
- # of the IP packet set by the "set mtu"
- # command above.
-
- tcp irtt 5000
- # A guess at the round-trip time of packets
- # in milliseconds. When a connection is
- # initiated it is assumed that any packet
- # which is unacknowledged within this
- # time has gone missing. After a packet
- # has been acknowledged TCPIP will use
- # an average of the actual round-trip times
- # instead. This initial guess at the
- # round-trip time prevents a flurry of
- # retransmission when a new connection
- # starts on a slow channel. Do not alter
- # unless you know what you're doing.
-
- tcp window 21440
- # This command allocates a block of memory
- # for each incoming connection to use as
- # a buffer. The higher it is, the better
- # the throughput (particularly on a slow
- # connection), but the more memory used
- # by TCPIP for each incoming connection.
- # Should be a multiple of tcp_mss to avoid
- # wasting memory.
-
- tcp hangup 60 10
- # TCPIP will automatically check for
- # activity every 60 seconds and hangup
- # if there have been 10 consecutive checks
- # with no activity. The values here
- # assume you are web browsing, with long
- # periods of inactivity whilst you read
- # the page. If you don't browse the web
- # then something like 15 and 3 may be
- # better at saving your phone bills.
- # You can disable the check by making
- # either or both values 0.
- # Note that this only works if your modem
- # has been configured to hang up when DTR
- # drops.
-
- resolve timeout 5
- # Time, in seconds, TCPIP will wait for
- # a DNS query to be answered before trying
- # a different server. A low value is
- # best if your provider's servers are
- # unreliable, a high value (such as 30) is
- # better if they are heavily loaded.
-
- resolve names yes
- # Show any host information by name
- # rather than IP address. This is
- # much more useful but does slow things
- # down somewhat. Use no instead of yes
- # if you prefer speed.
-
- # Start up server tasks to respond to various requests (not actually separate
- # Wimp tasks)
-
- start echo # Start the echo server.
- start discard # Start the discard server.
-
- # Uncomment the next line to let outsiders download/upload files from/to
- # your machine.
- #start ftp # Start the ftp server which allows
- # others to transfer files to and from
- # your machine. Note that you must also
- # set up !TCPIPUser.FTP.users accordingly.
-
- @if net_mail_protocol$="SMTP"
- start smtp # Allow incoming mail to be delivered to
- # your machine by SMTP.
- @endif
-
- start finger # Allow outsiders to find out information
- # about users on your machine by fingering
- # it. Note: you make such information
- # available about a user (say "fred") by
- # creating a textfile called
- # !TCPIPUser.finger.fred.
-
- start telnet # This allows other people to telnet to
- # your machine. On other systems this
- # would allow them to login, but this
- # is not possible on the Arc so an incoming
- # telnet starts up a chat window so you
- # can talk to them. You may wish to
- # disable this by commenting it out.
-
- start telnet 87 # This allows people to telnet to your
- # machine using the well-known chat port,
- # which starts up a chat window. Your
- # provider may attempt to contact you in
- # this way if they have to shut down the
- # PoP you are connected to, so you are
- # advised not to disable it.
-
- # Various settings controlling fetching of Usenet news
-
- nntp trace 2 # Define level of tracing information when
- # downloading news. 2 is a sensible value
- # for day-to-day use.
-
- nntp dup hist # Instruct TCPIP to keep a history file
- # of downloaded message IDs to prevent
- # duplicate news articles appearing.
- # If you use ReaderS to read news you may
- # prefer "nntp dup readers", although this
- # has disadvantages as well as advantages.
-
- nntp trim 48 # Delete any message ID from the history
- # file that is older than 48 hours. This
- # is a sensible value in case your
- # provider's ever has problems and you
- # have to set the time of the last download
- # back a day to get missing articles.
-
- nntp fudge 120 # This value, in seconds, is used to adjust
- # the time of your last news download
- # backwards to allow for clock drift on
- # your machine or the news server.
-
- nntp direct on # Articles are written directly to the
- # news batch instead of via a scrap file.
- # There is only a marginal improvement in
- # setting this off if Wimp$Scrap is on a
- # RAM disc, so you may as well leave it on.
-
- nntp batch 12 # Number of simultaneous news article
- # requests that may be made. A slight
- # improvement will be seen by increasing
- # this to the maximum of 16.
-
- nntp newgroups yes # List to a file all the new newsgroups
- # which have been created since you last
- # downloaded news.
-
- nntp retry 2 100 # If the news server rejects your connection
- # because of loading, TCPIP will
- # automatically retry every 2 seconds, and
- # will make up to 100 attempts to connect
- # if necessary. Setting either parameter
- # to 0 will disable this.
-
- # Some settings to do with sending and receiving mail
-
- smtp trace 1 # Define level of trace information when
- # sending mail.
-
- smtp sep rm # Separator used between messages in your
- # smtp mailboxes. The default is "From "
- # but the rm separator is more efficient
- # if your mail reader understands it.
- # Do not change whilst you have mail
- # that has not been transferred to your
- # mailer, or your mailer will get confused.
-
- pop trace 1 # Define level of trace information when
- # receiving POP mail.
-
- pop sep rm # As for smtp sep (see above) but used for
- # POP mailboxes.
-
- # Options for FTP sessions
-
- ftpopt prompt long # Make the prompt in ftp sessions show
- # the full directory name. Alternatives
- # are "short" (show just the last element
- # of the path) and "nodir" (show just an
- # "ftp>" prompt.
-
- ftpopt trace 0 # Do not display reply codes from ftp
- # server (change to 1 to see full reply
- # codes).
-
- ftpopt winsize 80 200 80 24 # Make ftp session windows open up
- # with a work area of 80 columns by 200
- # rows and a visible size of 80 columns
- # by 24 rows.
- # You may omit trailing parameters and
- # will get default values for those
- # parameters omitted - default values are
- # 80 24 80 24 (so the command could have
- # been specified as just "ftpopt winsize
- # 80 200").
-
- ftpopt path auto # Use the automatic path processing defined
- # in !TCPIPUser.FTP.PathEnt - this controls
- # translation from file extensions to RISC
- # OS filetypes, placement of downloaded
- # files in various directories depending on
- # filename and extension (so fred.jpg will
- # appear as a file called fred of filetype
- # JPEG in directory Images)
- # Alternatives to "auto" are "type" which
- # just translates extensions to RISC OS
- # filetypes and "off" which replaces the
- # "." extension separator by "_" and
- # truncates the result as necessary.
- # Auto is the best choice...
-
- ftpopt type image # Make ftp sessions start up in image
- # (binary) mode. A text file transferred
- # in binary mode may have the wrong end-of-
- # line markers, but a binary file
- # transferred in text mode will be
- # corrupted, so this is safest.
-
- ftpopt hash 1 # Show a running byte count (and percentage
- # if the remote server indicates the size
- # of the file). Alternatives are "0" which
- # turns off any indication and any number
- # higher than one which prints a #-sign
- # each time that number of bytes has been
- # transferred.
-
- set ftpuser "ftpuser" # Used to construct your password when you
- # connect to another machine by anonymous
- # ftp (e.g., "xyz" - this is used as
- # xyz@{host} and the value of {host} is
- # expanded by the ftp script).
- # This user will be mailed by the ftp
- # site if, for instance, there is a
- # problem with a file you have downloaded
- # (such as a virus).
-
- log <TCPIP$Dir>.logfile # Log events to a logfile. Note that you
- # must check and delete it periodically
- # or it will fill your hard disc. Also
- # note that you will hardly ever examine
- # it once you are happy your setup is
- # working correctly so you may as well turn
- # logging off (by commenting this line out)
- # once everything is OK.
-